Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix client and env info normalization #588

Merged
merged 1 commit into from
Oct 19, 2021
Merged

Conversation

wwilsman
Copy link
Contributor

What is this?

SDKs send client and environment information for debugging purposes. Since our SDKs span across languages and frameworks, config and snapshot options are accepted in many formats (camelCase, kebab-case, or snake_case). With recent changes however, client and environment information were extracted from snapshot options before normalization can occur. This results in snapshot validation claiming invalid options and pruning them, which then also results in a warning about missing client/env info (see linked issue). This PR amends the offending lines and extracts client/env info after normalization.

Fixes #581

@wwilsman wwilsman added the 🐛 bug Something isn't working label Oct 19, 2021
@wwilsman wwilsman requested a review from Robdel12 October 19, 2021 19:27
@wwilsman wwilsman enabled auto-merge (squash) October 19, 2021 19:31
Copy link
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏁 nice on the test adds too

@wwilsman wwilsman merged commit ee04cc7 into master Oct 19, 2021
@wwilsman wwilsman deleted the ww/fix-client-env-warn branch October 19, 2021 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New clientInfo and environmentInfo warnings in 1.0.0-beta.69
2 participants